using System;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Text;

namespace StudentManagementApplication.Business
{
    public class StudentService
    {
        private DAO.StudentDAO studentDAO = new DAO.StudentDAO();

        public void InsertStudent(Entities.Student student)
        {
            studentDAO.InsertStudent(student);
        }

        public void UpdateStudent(Entities.Student student)
        {
            studentDAO.UpdateStudent(student);
        }

        public void DeleteStudent(string sStudentID)
        {
            studentDAO.DeleteStudent(sStudentID);
        }

        public Entities.Student GetStudentByStudentID(string sStudentID)
        {
            return studentDAO.GetStudentByStudentID(sStudentID);
        }

        public List<Entities.Student> GetAllStudents()
        {
            return studentDAO.GetAllStudents();
        }

        public List<Entities.Student> GetStudentsByClassID(string sClassID)
        {
            return studentDAO.GetStudentsByClassID(sClassID);
        }
    }
}
